<template>
  <div class="login">
    <el-button type="primary" @click="login">登录</el-button>
  </div>
</template>

<script setup lang="ts">
import { ref, reactive, onMounted } from "vue";
import { useRouter } from "vue-router";

const router = useRouter();
const login = () => {
  router.replace({ path: '/home' });
};
</script>

<style lang="less" scoped>
.login {}
</style>